﻿<Window x:Class="Microsoft.Research.DynamicDataDisplay.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        xmlns:v="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views"
        Icon="{x:Static d3:D3IconHelper.DynamicDataDisplayWhiteIcon}"
        Title="WPF DynamicDtataDisplay Samples Gallery" WindowState="Maximized"
		>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<Border BorderBrush="Black" BorderThickness="0.5" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
			<v:TreeDemonstrationView x:Name="treeView" DataContext="{StaticResource samples}"/>
		</Border>

		<TextBlock Text="Click an item in the tree panel on the left to view a demonstration here" 
				   Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
				   FontSize="20"/>
		<v:DetailsView DataContext="{Binding ElementName=treeView, Path=SelectedValue}" Grid.Column="1"/>
	</Grid>
</Window>
